package com.fq.myapplication.bean;

import java.util.List;

public class Message {
    private int avatarRes;      // 头像资源ID
    private String username;    // 用户名
    private String time;        // 发布时间
//    private int contentImageRes;// 内容图片资源ID
    private int likeCount;      // 点赞数
    private int commentCount;   // 评论数
    private boolean isCollected; // 新增字段用于记录收藏状态

    private List<Integer> imageList; //九宫格图片

    // 构造方法
    public Message(int avatarRes, String username, String time, int likeCount, int commentCount, List<Integer> imageList) {
        this.avatarRes = avatarRes;
        this.username = username;
        this.time = time;
//        this.contentImageRes = contentImageRes;
        this.likeCount = likeCount;
        this.commentCount = commentCount;
        this.isCollected = false; // 默认未收藏
        this.imageList = imageList;
    }

    // Getter 方法
    public int getAvatarRes() { return avatarRes; }
    public String getUsername() { return username; }
    public String getTime() { return time; }
//    public int getContentImageRes() { return contentImageRes; }
    public int getLikeCount() { return likeCount; }
    public int getCommentCount() { return commentCount; }

    public List<Integer> getImageList(){
        return imageList;
    }


    public void setLikeCount(int likeCount) {
        this.likeCount = likeCount;
    }

    public boolean isCollected() {
        return isCollected;
    }

    public void setCollected(boolean collected) {
        isCollected = collected;
    }

    public void setImageList(List<Integer> imageList) {
        this.imageList = imageList;
    }

}
